package com.b2b.model;

import com.b2b.model.entity.Message;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
@Data
public class MessageDto extends Message {
    private Integer messageId;
    private Integer senderId;
    private Integer receiverId;
    private String content;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sendTime;
    private Integer page;
    private Integer rows;
    private String sidx;
    private String sord;
}
